﻿using MyBlog.IRepository;
using MyBlog.IService;
using MyBlog.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyBlog.Sevice
{
    public class BlogNewsService : BaseService<BlogNews>, IBlogNewsService
    {
        IBlogNewsRepository _iBlogNewsRepository;
        public BlogNewsService(IBlogNewsRepository ib)
        {
            //从子类的构造函数传参给父类,访问 BlogNews 数据
            base._iBaseRepository = ib;
            _iBlogNewsRepository = ib;
        }
    }
}
